import request from '@/utils/request'

// 查询参数接口
export interface QuickReplyQuery {
  pageNum?: number
  pageSize?: number
  doctorId?: number | string
  orderByColumn?: string
  isAsc?: string
}

// 快捷回复数据接口
export interface QuickReplyData {
  replyId: number
  doctorId: number
  content: string
  sort: number
  createTime?: string
  updateTime?: string
}

// 查询快捷回复列表
export function listReply(query: QuickReplyQuery) {
  return request({
    url: '/system/quick-reply/list',
    method: 'get',
    params: query
  })
}

// 新增快捷回复
export function addReply(data: Partial<QuickReplyData>) {
  return request({
    url: '/system/quick-reply',
    method: 'post',
    data: data
  })
}

// 修改快捷回复
export function updateReply(data: Partial<QuickReplyData>) {
  return request({
    url: '/system/quick-reply',
    method: 'put',
    data: data
  })
}

// 删除快捷回复
export function delReply(replyId: number) {
  return request({
    url: '/system/quick-reply/' + replyId,
    method: 'delete'
  })
}

// 获取医生的快捷回复列表
export function getDoctorReplies(doctorId: number) {
  return request({
    url: '/system/quick-reply/doctor/' + doctorId,
    method: 'get'
  })
} 